package com.cmy.framework_base.common.loadsir

import android.annotation.SuppressLint
import android.content.Context
import android.content.res.ColorStateList
import android.view.View
import android.widget.ProgressBar
import com.cmy.framework_base.R
import com.kingja.loadsir.callback.Callback


class LoadingCallback : Callback() {

    override fun onCreateView() = R.layout.base_layout_loading

    @SuppressLint("ResourceAsColor")
    override fun onViewCreate(context: Context?, view: View?) {
        view?.let {
            val progressBar = it.findViewById<ProgressBar>(R.id.progress)
            progressBar.indeterminateTintList = ColorStateList.valueOf(com.cmy.framework.resources.R.color.black)
        }
    }
}